package spring.boot.adminx.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import spring.boot.adminx.mapper.WxAdMapper;
import spring.boot.adminx.model.WxAd;

@Service
public class WxAdService extends ServiceImpl<WxAdMapper, WxAd> {

    public long selectFirstUrlIdByAdId(long id){
        WxAd wxAd = getById(id);
        return wxAd.getFirstPageId();
    }

}
